-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Clone
requirement for argument types
#353
base: master
Are you sure you want to change the base?
Conversation
9f35399
to
43b7c86
Compare
- Rework construction of the internal type-checking function to remove the clone requirement. Construct and call the type-check-function right at the site we already expand the probe argument closure, rather than outside. This means we don't need to expand things twice, and don't need to clone the closure, and so don't need the argument types to be cloneable either. - Fixup tests for new method, add some comments. - Update trybuild tests - Closes #136
43b7c86
to
0477fd0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good; you might try building crucible or something with this just to make sure nothing broke.
I pulled this branch into a binary with some probes in the Omicron repo, and it looks like the probes still fire as normal:
That's while running some SQL queries against ClickHouse using a little shell I wrote. |
Clone
requirement #136